CentOS 6
Sponsored Link

Use FUSE - SSHFS
2013/02/17
 
Use FUSE (Filesystem in Userspace) to access remote filesystems via SSH.
[1] Install fuse-sshfs
[root@dlp ~]#
yum --enablerepo=epel -y install fuse-sshfs
 
# install from EPEL
[2] Add a user you'd like to configure to use FUSE to "fuse" group.
[root@dlp ~]#
usermod -G fuse cent

[3] The follows is how to mount remote filesystem. Of course, it's impossible to write anything if you don't have write permission on the remote directory.
# create a directory for mount

[cent@dlp ~]$
mkdir ./mnt
# mount via ssh

[cent@dlp ~]$
sshfs 10.0.0.18:/home/cent ./mnt

fuse init (API version 7.13)
The authenticity of host '10.0.0.18 (10.0.0.18)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?
yes

cent@10.0.0.18's password:
# just mounted

[cent@dlp ~]$
ll ./mnt

total 4
-rw-rw-r-- 1 cent cent    0 Feb 19 14:24 rx-7.txt
drwxrwxr-x 1 cent cent 4096 Feb 19 14:24 testdir

# unmount

[cent@dlp ~]$
fusermount -u ./mnt
 
Tweet